package com.kjlink.internal.workreport.plan.mapper;

import cn.xuqiudong.common.base.mapper.BaseMapper;
import com.kjlink.internal.workreport.plan.model.WorkPlanDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 功能: :周工作计划详情 Mapper
 *
 * @author Vic.xu
 * @since 2024-10-10 09:56
 */
public interface WorkPlanDetailMapper extends BaseMapper<WorkPlanDetail> {

    List<WorkPlanDetail> findByPlanId(@Param("planId") Integer planId);

    List<WorkPlanDetail> bringInLastWeek(@Param("planId") Integer planId);

    /**
     * 根据小组和周次查询详情
     */
    List<WorkPlanDetail> findByGroupAndWeek(@Param("groupId") Integer groupId, @Param("weekNumber") String weekNumber);
}
